package com.andyage.admin.action;

import java.io.IOException;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.andyage.admin.bean.IncomeBean;
import com.andyage.admin.service.IIncomeService;

@Controller
@RequestMapping("/admin")
public class IncomeAction {
	@Resource
	private IIncomeService iincomeService;
	@RequestMapping("/queryIncomeByPrijectTitle")
	public  void queryIncomeByPrijectTitle(IncomeBean income,HttpServletResponse response) {
		
		String json = iincomeService.queryIncomeByPrijectTitle(income);
		response.setContentType("text/html;charset=utf-8");
		try {
			response.getWriter().print(json);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
